import { Vector3 } from "three";
import { create } from "zustand";
import { subscribeWithSelector } from "zustand/middleware";

export const useModel = /* @__PURE__ */ create(
  /* @__PURE__ */ subscribeWithSelector<ModelsState>(() => {
    return {
      gameStart: false,
      playerPos: null,
      startAnim: false,
    };
  })
);
export const setModel = useModel.setState;

type ModelsState = {
  gameStart: boolean;
  playerPos: Vector3 | null;
  startAnim: boolean;
};
